package com.our123.cms.dao.assist;

import java.util.List;

import com.our123.cms.entity.assist.CmsComment;
import com.our123.common.hibernate3.Updater;
import com.our123.common.page.Pagination;

public interface CmsCommentDao {
	public Pagination getPage(Integer siteId, Integer channelId, Integer authorId, Integer contentId, Integer greaterThen, Boolean checked,
			boolean recommend, boolean desc, int pageNo, int pageSize, boolean cacheable);

	public List<CmsComment> getList(Integer siteId, Integer channelId, Integer authorId, Integer contentId, Integer greaterThen, Boolean checked,
			boolean recommend, boolean desc, int count, boolean cacheable);

	public CmsComment findById(Integer id);

	public int deleteByContentId(Integer contentId);

	public CmsComment save(CmsComment bean);

	public CmsComment updateByUpdater(Updater<CmsComment> updater);

	public CmsComment deleteById(Integer id);
}